package org.springframework.samples.travel.application;

public interface CountingService {

    /**
     * 
     * @return the total amount of connection.
     */
    int getTotalConnections();

    /**
     * 
     * @return the number of failed connections
     */
    int getTotalFailedConnections();

    /**
     * 
     * @return the number of successful connections
     */
    int getTotalSuccessfulConnections();

    /**
     * increments the number of total connections
     */
    void incrementTotalConnections();

    /**
     * increments the number of successful connections.
     */
    void incrementTotalSuccessfulConnections();

}
